package com.xc.xcrpc.fault.retry;

import com.xc.xcrpc.model.RpcResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.Callable;

/**
 * 不重试 - 重试策略
 *
 * @author zqx
 * @since 2024/10/2
 */
@Slf4j
public class NoRetryStrategy implements RetryStrategy{

    /**
     * 重试
     */
    @Override
    public RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception {

        return callable.call();
    }



}
